home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Graphics / Plotting / aa_Intel_Only / Gnuplot / GnuplotSource / GnuplotPlot.h < prev    next >
Encoding:
Text File  |  1995-06-12  |  2.3 KB  |  112 lines

  1. /*
  2.  *  Copyright (C) 1993  Robert Davis
  3.  *
  4.  *  This program is free software; you can redistribute it and/or
  5.  *  modify it under the terms of Version 2, or any later version, of 
  6.  *  the GNU General Public License as published by the Free Software 
  7.  *  Foundation.
  8.  */
  9.  
  10. /* $Id: GnuplotPlot.h,v 1.8 1993/05/18 03:55:11 davis Exp $ */
  11.  
  12. #import <objc/Object.h>
  13. #import <appkit/Pasteboard.h>        /* NXAtom            */
  14. #import <dpsclient/event.h>        /* NXSize            */
  15.  
  16. @class Gnuplot, Status;
  17.  
  18. #define UPDATE_NEVER    0        /* Constant update types    */
  19. #define    UPDATE_ALWAYS    1
  20. #define    UPDATE_NOT3D    2
  21.  
  22. @interface GnuplotPlot:Object
  23. {
  24.     Gnuplot    *controller;        /* NXApp's delegate        */
  25.     Status    *status;        /* gnuplot Status        */
  26.     id        plotScrollView;        /* CellScrollView        */
  27.     id        plotView;        /* PlotView            */
  28.  
  29.     id        window;            /* Our window            */
  30.     id        stringSet;        /* controller's string set    */
  31.  
  32.     NXZone    *zone;            /* Our zone            */
  33.  
  34.     char    *fullPath;        /* "UntitledXX" if untitled    */
  35.     BOOL    isTitled;
  36.     char    *readText;        /* Text read from a file    */
  37. }
  38.  
  39. + initialize;
  40. + setConstantUpdate:(int)updateType;
  41. + setHalvePlot:(BOOL)condition;
  42.  
  43. - init;
  44. - initFromFile:(const char *) filename;    /* Filename is full path    */
  45. - free;
  46.  
  47. /*** Target/Action ***/
  48. - save:sender;
  49. - saveAs:sender;
  50. - saveTo:sender;
  51. - revertToSaved:sender;
  52. - close:sender;
  53. - print:sender;
  54.  
  55.  
  56.  
  57. /*** Setting Instance Variables ***/
  58. - setName: (const char *) name;
  59. - (const char *) name;
  60.  
  61. - setCurrentFont:aFont;        /* Awkward for this class to handle this */
  62. - currentFont;
  63.  
  64. - window;
  65. - (Status *)status;        /* The gnuplot Status object        */
  66.  
  67.  
  68.  
  69. /*** Plotting ***/
  70. - plotFromFile:(const char *)aFullPath;
  71. - plot:sender;
  72. - reportScriptError: sender;
  73.  
  74. - addDataFile:(const char *)aPath;
  75.  
  76.  
  77.  
  78. /*** Document ***/
  79. - setDocEdited:(BOOL) state;
  80. - (BOOL) isDocEdited;
  81. - hideDocument:sender;
  82.  
  83.  
  84.  
  85. /*** Services ***/
  86. - validRequestorForSendType:(NXAtom)sendType andReturnType:(NXAtom)returnType;
  87. - (BOOL)writeSelectionToPasteboard:pboard types:(NXAtom *)types;
  88.  
  89.  
  90.  
  91. /*** Autoupdate methods ***/
  92. - (BOOL)validateCommand:menuCell;
  93.  
  94.  
  95.  
  96. /*** Window Delegate Methods ***/
  97. - windowDidBecomeMain:sender;
  98. - windowDidMiniaturize:sender;
  99. - windowDidResignMain:sender;
  100. - windowDidResize:sender;
  101. - windowWillClose:sender;
  102. - windowWillResize:sender toSize:(NXSize *) frameSize;
  103.  
  104.  
  105.  
  106. /*** Status Delegate Methods ***/
  107. - settingsDidChange:sender;        
  108.  
  109.  
  110.  
  111. @end
  112.